#ifndef SLICE_H
#define SLICE_H

#include "Vector.h"
#include "Pixel.h"
#include "Texture.h"

class Slice
{
public:
    Slice(Texture& t, unsigned int height, const Vector& p1, const Vector& p2);
    ~Slice();

	unsigned int GetHeight() const;
	const Pixel& GetPixel(unsigned int y) const;
	const Pixel& operator()(unsigned int y) const;

protected:


private:
	unsigned int sliceheight;	// possibly keep height even at all times
	const Vector& texturep1, texturep2;
	Texture& texture;
};

#endif // SLICE_H
